package com.question.common.handler;

import com.p6spy.engine.logging.Category;
import com.p6spy.engine.spy.appender.Slf4JLogger;
import org.springframework.stereotype.Component;

/**
 * p6spy执行SQL日志打印
 *
 * @author star
 * @since 2023/9/12
 */
@Component
public class CustomP6SpyLogHandler extends Slf4JLogger {

    @Override
    public void logSQL(int connectionId, String now, long elapsed, Category category, String prepared, String sql, String url) {
        super.logSQL(connectionId, now, elapsed, category, prepared, sql, url);
    }

}
